import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/centerDef/centerDef',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/centerDef/centerDef',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: 'api/centerDef/centerDef',
    method: 'delete',
    data
  })
}

export function initMasterInfo() {
  return request({
    url: 'api/centerDef/initMasterInfo',
    method: 'get'
  })
}

export function checkCenterData(data) {
  return request({
    url: 'api/centerDef/checkCenterData',
    method: 'post',
    data
  })
}

export default { add, edit, del, initMasterInfo, checkCenterData }
